home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
edsqt101.zip
/
EDSQUOTE.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1993-05-06
|
4KB
|
185 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer INTEGER007
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
;------------------------------------------------------------------------------
If (Exist(PPEPath() + "EDSQUOTE.QTS")) Then
If (Exist(PPEPath() + "EDSQUOTE.CNF")) Then
STRING001 = ReadLine(PPEPath() + "EDSQUOTE.QTS", 1)
INTEGER001 = S2I(STRING001, 10)
FOpen 1, PPEPath() + "EDSQUOTE.CNF", 2, 2
FGet 1, STRING003
INTEGER005 = S2I(STRING003, 10)
STRING003 = 0
FGet 1, STRING003
INTEGER004 = S2I(STRING003, 10)
STRING003 = 0
FGet 1, STRING004
FGet 1, STRING005
FGet 1, STRING003
FClose 1
STRING006 = Upper(STRING003)
STRING003 = 0
Gosub LABEL002
Cls
PrintLn " @X10┌─────────────────────────────────────────────────@X19┐@X0F"
PrintLn " @X10│ @X1BE@X1F.@X1BD@X1F.@X1BS@X1F. @X1BQuote @X1Ev@X1F1@X1E.@X1F0 @X19│@X0F"
PrintLn " @X10│ @X1ACopyright @X1C(@X1EC@X1C) @X1A1993 by Eric D. Scales @X19│@X0F"
PrintLn " @X10└@X19─────────────────────────────────────────────────┘@X0F"
PrintLn
PrintLn
INTEGER002 = Random(INTEGER001)
If (INTEGER002 == 1) INTEGER002 = 2
STRING002 = ReadLine(PPEPath() + "EDSQUOTE.QTS", INTEGER002)
INTEGER003 = Len(STRING002)
INTEGER003 = 78 - INTEGER003
INTEGER003 = INTEGER003 / 2
PrintLn " @X38┌────────────────────────────────────────────────────────────────────────────@X3B┐@X0F"
PrintLn " @X38│ @X3EYour Quote of the day @POS:79@@X3B│@X0F"
PrintLn " @X38│ @X39───────────────────────────── @POS:79@@X3B│@X0F"
PrintLn " @X38│@POS:79@@X3B│@X0F"
PrintLn " @X38│" + Space(INTEGER003) + "@X3F" + STRING002 + "@POS:79@@X3B│@X0F"
PrintLn " @X38│@POS:79@@X3B│@X0F"
PrintLn " @X38└@X3B────────────────────────────────────────────────────────────────────────────┘@X0F"
PrintLn " @X07 "
If (BOOLEAN001 == 1) Then
PrintLn " @X0FRegistered To: @X09" + STRING004
PrintLn " @X0E " + STRING005
Goto LABEL001
Endif
PrintLn " @X09[@X8FUNREGISTERED EVALUATION COPY@X09] @X0ACall @X0C(@X0F812@X0C)@X0F 423@X0C-@X0F3394@X0A for support.."
:LABEL001
Wait
Goto LABEL003
:LABEL002
INTEGER007 = INTEGER004 * 4
Inc INTEGER007
INTEGER007 = INTEGER007 + 2491
INTEGER007 = INTEGER007 - 8503
Inc INTEGER007
INTEGER007 = INTEGER007 + 9947
INTEGER007 = INTEGER007 / 2
Inc INTEGER007
INTEGER007 = INTEGER007 + 1211
Inc INTEGER007
BOOLEAN001 = 0
For INTEGER006 = 1 To Len(STRING004)
INTEGER007 = INTEGER007 + Asc(Mid(STRING004, INTEGER006, 1))
Next
If (INTEGER007 == INTEGER005) BOOLEAN001 = 1
Return
Endif
PrintLn
PrintLn "@X0C EDSQuote v1.0 ERROR: Your SysOp does not have the EDSQUOTE.QTS file installed!"
Log "EDSQuote ERROR: EDSQUOTE.QTS not found.. Please consult docs..", 1
PrintLn "@X0F Sysop has been notified, you may continue..."
Goto LABEL003
Endif
PrintLn
PrintLn "@X0C EDSQuote v1.0 ERROR: Your SysOp does not have the EDSQUOTE.CNF file installed!"
Log "EDSQuote ERROR: EDSQUOTE.CNF not found.. Please consult docs..", 1
PrintLn "@X0F SysOp has been notified, you may continue..."
:LABEL003
If ((STRING006 <> "NONE") && (STRING006 <> "")) Call STRING006
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 1 Cls
; 1 Wait
; 9 Goto
; 25 Let
; 23 PrintLn
; 7 If
; 1 FOpen
; 1 FClose
; 5 FGet
; 2 Log
; 1 Gosub
; 1 Return
; 4 Inc
; 1 Call
;
;
; ■ Functions used :
;
; 1 *
; 2 /
; 16 +
; 2 -
; 3 ==
; 2 <>
; 1 <
; 1 <=
; 2 >=
; 4 !
; 3 &&
; 1 ||
; 3 Len(
; 1 Upper()
; 1 Mid()
; 1 Space()
; 1 Asc()
; 1 Random()
; 5 PPEPath()
; 2 ReadLine()
; 2 Exist()
; 3 S2I()
;
;------------------------------------------------------------------------------
;
; Analysis flags : C
;
; C - Call child PPE ■ 3
; This is usually normal, but may be a tricky way to launch some
; sysop-only commands.
; ■ Search for : CALL
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 0 While/EndWhile
; 3 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------